package com.gaoyuzhe.service.impl;

import com.gaoyuzhe.dao.PaymentDao;
import com.gaoyuzhe.entities.Payment;
import com.gaoyuzhe.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public int insert(Payment payment){
        return paymentDao.insert(payment);
    }

    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }
}
